package com.jg.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName book
 */
@Data
public class Book implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String bookName;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date publicationDate;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private String coverImageUrl;

    /**
     * 
     */
    private Integer bookTypeId;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedAt;

    private BookTypes bookType;

    private static final long serialVersionUID = 1L;
}